@use "sass:math";

@use '../tools/colors';
@use '../tools/variables';

.peers-list {
  &__flag {
    display: inline-block;
    height: 10px;
    overflow: hidden;
    margin-right: math.div(variables.$spacing-unit * 1, 5);
    position: relative;
    width: 20px;
    vertical-align: baseline;

    &__image {
      height: 10px;
      left: 50%;
      position: absolute;
      top: 0;
      transform: translateX(-50%);
      width: auto;
      z-index: 2;
    }

    &__text {
      font-size: 0.8em;
      font-weight: bold;
      left: 50%;
      margin-top: 1px;
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
    }
  }

  &__encryption {
    .icon {
      fill: colors.$green;
      height: 12px;
      width: 12px;
    }
  }

  &__incoming {
    .icon {
      fill: colors.$green;
      height: 12px;
      width: 12px;
    }
  }
}
